<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MessageChannle发送消息</title>
</head>
<body>
    <div class="main">
        <h2>用channel 给子线程发送消息</h2>
        <input type="text" name="msg" id="msg">
        <button onclick="sendMsg()">发送消息</button>
        <br>
        <div id="result"></div>
    </div>
    
    <script src="./main.js"></script>
</body>
</html>